package com.meilai.project.dto.finance.payment;

import com.meilai.project.dto.workflow.WorkFlowExtraSubmitDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author xchen
 * @since 2022-02-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel
public class PaymentApplyDTO extends WorkFlowExtraSubmitDTO {

    @NotEmpty
    @ApiModelProperty(value = "事由", required = true)
    private String reason;

    @NotEmpty
    @ApiModelProperty(value = "收款方", required = true)
    private String receiver;

    @NotEmpty
    @ApiModelProperty(value = "申请时附件", required = true)
    private String apply_attach_file;

    @NotNull
    @ApiModelProperty(value = "金额", required = true)
    private BigDecimal amount;
}
